<?php $controllerName = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();
$SS = new Zend_Session_Namespace ('Language');

$lang = $SS->language;
?>
<?php $SS2 = new Zend_Session_Namespace ('Cart');
            $ssCart = $SS2->carts;
            if(isset($ssCart)){?>
       
<div class="ab-cart">
        <a title="gio hang" style="cursor: pointer;" href="/orders">
            <img alt="logo" src="<?php echo $this->baseUrl();?>/images/my-cart.gif" id="my-cart" />
        </a>
</div>
<?php } ?>

<div class="row-fluid">
                    <section class="span4">
                        <a href="/" id="logo">
                            <img src="<?php echo $this->baseUrl()."/".$this->config->logo;?>" alt="" />
                        </a>
                    </section>
                    <section class="span5">
                        <div class="contact">
                            <span>Tel: <?php echo $this->config->mobile;?> </span>
                            <span>Fax: <?php echo $this->config->phone;?></span>    
                        </div>
                    </section>
                    <section class="span3 text-right">
                        <div class="login">
                            <a href="/index/language/lang/chi" class="<?php echo $SS->language == "chi" ? "active" : "";?>">China</a>
                            <a href="/index/language/lang/en" class="<?php echo $SS->language == "en" ? "active" : "";?>">English</a>
                            <a href="/index/language/lang/vi" class="last <?php echo $SS->language == "vi" ? "active" : "";?>">Viet Nam</a>
                            
                        </div>
                        <div class="social">
                            <span>Follow us</span>
                            <a href="<?php echo $this->config->google;?>" target="_blank">
                                <img src="<?php echo $this->baseUrl();?>/img/icon/google.png" alt="" />
                            </a>
                            <a href="<?php echo $this->config->facebook;?>" target="_blank">
                                <img src="<?php echo $this->baseUrl();?>/img/icon/fb.png" alt="" />
                            </a>
                            <a href="<?php echo $this->config->twiter;?>" target="_blank">
                                <img src="<?php echo $this->baseUrl();?>/img/icon/twitter.png" alt="" />
                            </a>
                        </div>
                    </section>
                </div>
                <div class="navbar">
                    <div class="navbar-inner">
                        <div class="container" style="width: auto;">
                            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </a>
                            <a class="brand" href="#">Project name</a>
                            <?php $langHome = "Trang chủ";
                                  if($lang == "en"){
                                  $langHome = "Home";  
                                  }elseif($lang == "chi"){
                                  $langHome = "家";  
                                  } 
                                  
                                  $langAbout = "Giới thiệu";
                                  if($lang == "en"){
                                  $langAbout = "About us";  
                                  }elseif($lang == "chi"){
                                  $langAbout = "關於";  
                                  } 
                                  
                                  
                                  $langProduct = "Sản phẩm";
                                  if($lang == "en"){
                                  $langProduct = "Products";  
                                  }elseif($lang == "chi"){
                                  $langProduct = "產品";  
                                  } 
                                  
                                  $langService = "Dịch vụ";
                                  if($lang == "en"){
                                  $langService = "Service";  
                                  }elseif($lang == "chi"){
                                  $langService = "服務";  
                                  } 
                                  
                                  $langNews = "Tin tức";
                                  if($lang == "en"){
                                  $langNews = "News";  
                                  }elseif($lang == "chi"){
                                  $langNews = "新聞";  
                                  }
                                  
                                  $langHelp = "Hướng dẫn mua hàng";
                                  if($lang == "en"){
                                  $langHelp = "Shopping guide";  
                                  }elseif($lang == "chi"){
                                  $langHelp = "導購";  
                                  }
                                  
                                  $langContact = "Liên hệ";
                                  if($lang == "en"){
                                  $langContact = "Contact";  
                                  }elseif($lang == "chi"){
                                  $langContact = "聯繫";  
                                  }
                            ?>
                            <div class="nav-collapse">
                                <ul class="nav">
                                    <li <?php echo $controllerName == "index" ? 'class="active"' : "";?>><a href="/" title="<?php echo $lang == "en" ? "Home" : "Trang chủ";?>"><?php echo $langHome;?></a></li>
                                    <li <?php echo $controllerName == "abouts" ? 'class="active"' : "";?>><a href="/gioi-thieu" title="<?php echo $lang == "en" ? "About us" : "Giới thiệu";?>"><?php echo $langAbout;?></a></li>
                                    <li <?php echo $controllerName == "products" ? 'class="active"' : "";?>><a href="/san-pham" title="<?php echo $lang == "en" ? "Products" : "Sản phẩm";?>"><?php echo $langProduct;?></a></li>
                                    <li <?php echo $controllerName == "service" ? 'class="active"' : "";?>><a href="/dich-vu" title="<?php echo $lang == "en" ? "Service" : "Dịch vụ";?>"><?php echo $langService;?>  </a></li>
                                    
                                    <li <?php echo $controllerName == "news" ? 'class="active"' : "";?>>
                                        <a href="/tin-tuc" title="Tin tức"><?php echo $langNews;?></a>
                                        
                                    </li>
                                    <li <?php echo $controllerName == "help" ? 'class="active"' : "";?>><a href="/huong-dan-mua-hang" title="<?php echo $langHelp;?>"><?php echo $langHelp;?></a></li>
                                    <li <?php echo $controllerName == "contact" ? 'class="active"' : "";?>><a href="/lien-he" title="<?php echo $langContact;?>"><?php echo $langContact;?></a></li>
                                </ul>
                                <form class="navbar-search pull-right" action="/search/redirect" method="post">
                                    <input type="text" class="search-query span2"  name="key"/>
                                    <input type="submit" value="" />
                                </form>
                            </div><!-- /.nav-collapse -->
                        </div>
                    </div><!-- /navbar-inner -->
                </div>